package com.markedquilt.homepage.dao;

import com.markedquilt.homepage.entity.HomePageUserCourse;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author ZhangKe
 * @Description
 * @date 2020/12/27 18:45.
 */
public interface HomePageUserCourseDao extends JpaRepository<HomePageUserCourse,Long> {

    /**
     * 根据用户id获取数据
     * @param userId
     * @return
     */
    List<HomePageUserCourse> findAllByUserId(Long userId);
}
